"""
数据驱动方法
"""
import xlrd
def read_data_from_excel(file,sheet):
    data = xlrd.open_workbook(file)
    table=data.sheet_by_name(sheet)
    nrows = table.nrows
    ret=[]
    for row in range(1,nrows):
        data=table.row_values(row)
        ret.append(data)
    return ret